package frsf.cidisi.exercise.tp2.situationCalculus;

import javax.swing.WindowConstants;
import frsf.cidisi.exercise.tp2.interfaz.Principal;
import frsf.cidisi.faia.exceptions.PrologConnectorException;
import frsf.cidisi.faia.simulator.SituationCalculusBasedAgentSimulator;

public class ArqueologoMain {

    /**
     * @param args
     * @throws PrologConnectorException
     */
    @SuppressWarnings("deprecation")
	public static void main(String[] args) throws PrologConnectorException {
        
    	
    	boolean interfazEnabled = true;
    	
    	if(interfazEnabled){
    		
    		Principal principal = new Principal();
    		principal.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);  
	    	
    		principal.pack();
    		principal.setAlwaysOnTop(true);
    		principal.show();
    		principal.setLocation(0,0);
    		principal.setVisible(true);
	     
    	}
    	else{
    		 Arqueologo agent = new Arqueologo();
    	     IslaEmiroce environment = new IslaEmiroce();
    	     SituationCalculusBasedAgentSimulator simulator = new SituationCalculusBasedAgentSimulator(environment, agent);
    	    
    	     simulator.start();
    	}
    	
    }
    
    
}
